<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
	<ui:composition template="/templates/padraoJSF.xhtml">
		<ui:define name="barraTitulo">Cadastro de Aluno</ui:define>
		<ui:define name="conteudo">
			<fieldset>
				<p:tabView>
					<p:tab title="Cadastro">
						<h:form>
							<h:panelGrid columns="2" columnClasses="width30 alinhaDir">
								<h:column>
									<h:outputLabel value="CPF:"/>
								</h:column>
								<h:column>
									<h:inputText id="CPF" size="18" maxlength="18" value="#{controleAluno.aluno.pessoa.CPF}" alt="CPF" styleClass="upper"/>
									<p:commandLink action="#{controleAluno.pesquisaAlunoCPF}" update="idPanelGrid" styleClass="upper">
										<h:graphicImage url="/images/botoes/btnPesquisar.png" styleClass="iconesLaterais" />
									</p:commandLink>
								</h:column>
							</h:panelGrid>
						</h:form>
						<h:panelGrid id="idPanelGrid">
							<h:form id="form" rendered="#{controleAluno.bControleTelaCPF}">
								<p:growl id="messages"/>
									<h:panelGrid columns="2" columnClasses="width30 alinhaDir">
											<h:outputLabel value="Matricula:" />
											<h:outputText value="#{controleAluno.aluno.matricula}" />
											<h:outputLabel value="Nome:" />
											<h:outputText value="#{controleAluno.aluno.pessoa.nome}" />
									</h:panelGrid>
									<p:tabView id="tabView">
										<p:tab title="Dados Pessoais">
											<fieldset>
												<h:panelGrid columns="2" columnClasses="alinhaDir">
													<h:column>
													</h:column>
													<h:column>
														<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
													</h:column>
													<h:column>
														<h:outputLabel value="CPF:" />
													</h:column>
													<h:column>
														<h:inputText id="CPF" size="18" maxlength="18" value="#{controleAluno.aluno.pessoa.CPF}" requiredMessage="Campo [CPF] obrigat&oacute;rio" required="true" alt="CPF">
															<f:ajax execute="@form" render="tabView" event="blur" listener="#{controleAluno.pesquisaAlunoCPF}" />
														</h:inputText>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="RG:" />
													</h:column>
													<h:column>
														<h:inputText id="numeroRG" size="30" maxlength="30" value="#{controleAluno.aluno.pessoa.rg.numeroRG}" requiredMessage="Campo [RG] obrigat&oacute;rio" required="true" styleClass="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="&Oacute;rg&atilde;o Emissor:" />
													</h:column>
													<h:column>
														<h:inputText id="orgaoEmissorRG" size="5" maxlength="5" value="#{controleAluno.aluno.pessoa.rg.orgaoEmissorRG}" requiredMessage="Campo [&Oacute;RG&Atilde;O EMISSOR] obrigat&oacute;rio" required="true" styleClass="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="UF:" />&nbsp;
														<h:selectOneMenu value="#{controleAluno.aluno.pessoa.rg.UFRG}" requiredMessage="Campo [UF do RG] obrigat&oacute;rio" required="true" >  
										                    <f:selectItems value="#{controleAluno.UFS}" var="UF" itemLabel="#{UF}" itemValue="#{UF}" />
														</h:selectOneMenu>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Data de Emiss&atilde;o:" />&nbsp;
														<p:calendar value="#{controleAluno.aluno.pessoa.rg.dataEmissaoRG}" mode="popup" pattern="dd/MM/yyyy" requiredMessage="Campo [DATA DE EMISS&Atilde;O DO RG] obrigat&oacute;rio" required="true" />&nbsp;
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Nome:" />
													</h:column>
													<h:column>
														<h:inputText id="nome" size="80" maxlength="100" value="#{controleAluno.aluno.pessoa.nome}" requiredMessage="Campo [NOME] obrigat&oacute;rio" required="true" styleClass="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Telefone:" />
													</h:column>
													<h:column>
														<p:inputMask id="telefone" size="14" mask="(99) 9999-9999" maxlength="14" value="#{controleAluno.aluno.pessoa.telefone}" requiredMessage="Campo [TELEFONE] obrigat&oacute;rio" required="true" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Celular:" />&nbsp;
														<p:inputMask id="celular" size="14" mask="(99) 9999-9999" maxlength="14" value="#{controleAluno.aluno.pessoa.celular}" alt="phone" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Email:" />&nbsp;
														<h:inputText id="email" size="50" maxlength="50" value="#{controleAluno.aluno.pessoa.email}" class="lower" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Sexo:" />
													</h:column>
													<h:column>
														<h:selectOneMenu value="#{controleAluno.aluno.pessoa.sexo}">  
										                    <f:selectItems value="#{controleAluno.sexos}" var="sexo" itemLabel="#{sexo}" itemValue="#{sexo}" />
														</h:selectOneMenu>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Data de Nascimento:" />&nbsp;
														<p:calendar value="#{controleAluno.aluno.pessoa.dataNascimento}" mode="popup" pattern="dd/MM/yyyy" requiredMessage="Campo [DATA DE NASCIMENTO] obrigat&oacute;rio" required="true" />&nbsp;
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Estado Civil:" />
													</h:column>
													<h:column>
														<h:selectOneMenu value="#{controleAluno.aluno.pessoa.estadoCivil}" requiredMessage="Campo [ESTADO CIVIL] obrigat&oacute;rio" required="true" >  
										                    <f:selectItems value="#{controleAluno.estadoCivis}" var="estadoCivil" itemLabel="#{estadoCivil}" itemValue="#{estadoCivil}"   />
														</h:selectOneMenu>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Nacionalidade:" />&nbsp;
														<h:selectOneMenu value="#{controleAluno.aluno.pessoa.nacionalidade}" requiredMessage="Campo [NACIONALIDADE] obrigat&oacute;rio" required="true" >  
										                    <f:selectItems value="#{controleAluno.nacionalidades}" var="nacionalidade" itemLabel="#{nacionalidade}" itemValue="#{nacionalidade}" />
														</h:selectOneMenu>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Naturalidade:" />&nbsp;
														<h:inputText id="naturalidade" size="9" maxlength="100" value="#{controleAluno.aluno.pessoa.naturalidade}" requiredMessage="Campo [NATURALIDADE] obrigat&oacute;rio" required="true" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="UF:" />&nbsp;
														<h:selectOneMenu value="#{controleAluno.aluno.pessoa.UFNaturalidade}">  
										                    <f:selectItems value="#{controleAluno.UFS}" var="UFNaturalidade" itemLabel="#{UFNaturalidade}" itemValue="#{UFNaturalidade}" requiredMessage="Campo [ UF NATURALIDADE] obrigat&oacute;rio" required="true" />
														</h:selectOneMenu>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Pai:" />
													</h:column>
													<h:column>													
														<h:inputText id="nomePai" size="80" maxlength="100" value="#{controleAluno.aluno.pessoa.nomePai}" styleClass="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="M&atilde;e:" />
													</h:column>
													<h:column>													
														<h:inputText id="nomeMae" size="80" maxlength="100" value="#{controleAluno.aluno.pessoa.nomeMae}" requiredMessage="Campo [M&Atilde;E] obrigat&oacute;rio" required="true"  styleClass="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
												</h:panelGrid>
											</fieldset>
										</p:tab>
										<p:tab title="Endere&ccedil;o">
											<fieldset>
												<h:panelGrid columns="2" columnClasses="alinhaDir">
													<h:column>
													</h:column>
													<h:column>
														<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
													</h:column>
													<h:column>
														<h:outputLabel value="CEP" />
													</h:column>
													<h:column>
														<p:inputMask id="CEP" size="12" mask="99999-999" maxlength="9" value="#{controleAluno.aluno.pessoa.endereco.CEP}" requiredMessage="Campo [CEP] obrigat&oacute;rio" required="true"/>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Endere&ccedil;o:" />
													</h:column>
													<h:column>
														<h:inputText id="logradouro" size="50" maxlength="100" value="#{controleAluno.aluno.pessoa.endereco.logradouro}" requiredMessage="Campo [ENDERE&Ccedil;O] obrigat&oacute;rio" required="true" class="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="N&uacute;mero:" />
														<h:inputText id="numero" size="10" maxlength="10" value="#{controleAluno.aluno.pessoa.endereco.numero}" requiredMessage="Campo [N&Uacute;MERO] obrigat&oacute;rio" required="true" class="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Complemento:" />
													</h:column>
													<h:column>
														<h:inputText id="complemento" size="100" maxlength="50" value="#{controleAluno.aluno.pessoa.endereco.complemento}" class="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Bairro:" />
													</h:column>
													<h:column>
														<h:inputText id="bairro" size="100" maxlength="100" value="#{controleAluno.aluno.pessoa.endereco.bairro}" requiredMessage="Campo [BAIRRO] obrigat&oacute;rio" required="true" class="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>
													<h:column>
														<h:outputLabel value="Cidade:" />
													</h:column>
													<h:column>
														<h:inputText id="cidade" size="86" maxlength="100" value="#{controleAluno.aluno.pessoa.endereco.cidade}" requiredMessage="Campo [CIDADE] obrigat&oacute;rio" required="true" class="upper" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="UF:" />
														<h:selectOneMenu value="#{controleAluno.aluno.pessoa.endereco.UF}" requiredMessage="Campo [UF] obrigat&oacute;rio" required="true" >  
										                    <f:selectItems value="#{controleAluno.UFS}" var="UF" itemLabel="#{UF}" itemValue="#{UF}" />
														</h:selectOneMenu>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													</h:column>	
												</h:panelGrid>
											</fieldset>
										</p:tab>
										<p:tab title="Documentos">
											<fieldset>
											<h:panelGrid columns="2" columnClasses="alinhaDir">
												<h:column>
												</h:column>
												<h:column>
													<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
												</h:column>
												<h:column>
													<h:outputLabel value="T&iacute;tulo de Eleitor:" />
												</h:column>
												<h:column>
													<h:inputText id="numeroTitulo" size="20" maxlength="20" value="#{controleAluno.aluno.pessoa.tituloEleitor.numeroTitulo}" requiredMessage="Campo [N&Uacute;MERO DO T&Iacute;TULO] obrigat&oacute;rio" required="true" alt="number" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="Zona:" />&nbsp;
													<h:inputText id="zona" size="5" maxlength="5" value="#{controleAluno.aluno.pessoa.tituloEleitor.zona}" requiredMessage="Campo [ZONA] obrigat&oacute;rio" required="true"/>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="Se&ccedil;&atilde;o:" />&nbsp;
													<h:inputText id="secao" size="5" maxlength="5" value="#{controleAluno.aluno.pessoa.tituloEleitor.secao}" requiredMessage="Campo [SE&Ccedil;&Atilde;O] obrigat&oacute;rio" required="true"/>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="Data de Emiss&atilde;o:" />&nbsp;
													<p:calendar value="#{controleAluno.aluno.pessoa.tituloEleitor.dataEmissaoTituloEleitor}" mode="popup" pattern="dd/MM/yyyy" requiredMessage="Campo [DATA DE EMISS&Atilde;O DO T&Iacute;TULO DE ELEITOR] obrigat&oacute;rio" required="true"/>&nbsp;
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Cidade:" />
												</h:column>
												<h:column>
													<h:inputText id="cidadeTitulo" size="86" maxlength="100" value="#{controleAluno.aluno.pessoa.tituloEleitor.cidadeTitulo}" requiredMessage="Campo [CIDADE DO T&Iacute;TULO DE ELEITOR] obrigat&oacute;rio" required="true"/>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="UF:" />&nbsp;
													<h:selectOneMenu value="#{controleAluno.aluno.pessoa.tituloEleitor.UFTitulo}" requiredMessage="Campo [UF DO T&Iacute;TULO DE ELEITOR] obrigat&oacute;rio" required="true" >  
									                    <f:selectItems value="#{controleAluno.UFS}" var="UF" itemLabel="#{UF}" itemValue="#{UF}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Reservista:" />
												</h:column>
												<h:column>
													<h:inputText id="numeroReservista" size="15" maxlength="30" value="#{controleAluno.aluno.pessoa.reservista.numeroReservista}" alt="number" />
												</h:column>
												<h:column>
													<h:outputLabel value="&Oacute;rg&atilde;o Emissor:" />
												</h:column>
												<h:column>
													<h:inputText id="orgaoEmissorReservista" size="10" maxlength="50" value="#{controleAluno.aluno.pessoa.reservista.orgaoEmissorReservista}" />
													<h:outputLabel value="S&eacute;rie:" />&nbsp;
													<h:inputText id="serieReservista" size="20" maxlength="20" value="#{controleAluno.aluno.pessoa.reservista.serieReservista}" alt="number" />
												</h:column>
												<h:column>
													<h:outputLabel value="Pele:" />
												</h:column>
												<h:column>
													<h:selectOneMenu value="#{controleAluno.aluno.pessoa.pele}" id="pele">  
									                    <f:selectItems value="#{controleAluno.peles}" var="pele" itemLabel="#{pele}" itemValue="#{pele}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Defici&ecirc;cia:" />
												</h:column>
												<h:column>
													<h:selectOneMenu value="#{controleAluno.aluno.pessoa.deficiencia}" id="deficiencia">  
									                    <f:selectItems value="#{controleAluno.deficiencias}" var="deficiencia" itemLabel="#{deficiencia}" itemValue="#{deficiencia}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>								
											</h:panelGrid>
										</fieldset>
									</p:tab>
									<p:tab title="Ensino">
										<fieldset>
											<legend>Ensino Fundamental</legend>
											<h:panelGrid columns="2" columnClasses="alinhaDir">			
												<h:column>
												</h:column>
												<h:column>
													<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
												</h:column>
												<h:column>
													<h:outputLabel value="Institui&ccedil;&atilde;o:" />
												</h:column>
												<h:column>
													<h:inputText id="instituicaoEnsinoFundamental" size="60" maxlength="100" class="upper" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoFundamental.nomeInstituicaoEnsinoFundamental}" requiredMessage="Campo [INSTITUI&Ccedil;&Atilde;O DE ENSINO FUNDAMENTAL] obrigat&oacute;rio" required="true" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="Ano de Conclus&atilde;o:" />&nbsp;
													<h:inputText id="anoInstituicaoEnsinoFundamental" size="4" maxlength="4" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoFundamental.anoInstituicaoEnsinoFundamental}" alt="number" requiredMessage="Campo [ANO INSTITUI&Ccedil;&Atilde;O DE ENSINO FUNDAMENTAL] obrigat&oacute;rio" required="true" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Cidade:" />
												</h:column>
												<h:column>
													<h:inputText id="cidadeInstituicaoEnsinoFundamental" size="30" maxlength="30" class="upper" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoFundamental.cidadeInstituicaoEnsinoFundamental}" requiredMessage="Campo [CIDADE DA INSTITUI&Ccedil;&Atilde;O DE ENSINO FUNDAMENTAL] obrigat&oacute;rio" required="true" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="UF:" />&nbsp;
													<h:selectOneMenu value="#{controleAluno.aluno.pessoa.instituicaoEnsinoFundamental.UFInstituicaoEnsinoFundamental}" requiredMessage="Campo [UF DA INSTITUI&Ccedil;&Atilde;O DE ENSINO FUNDAMENTAL] obrigat&oacute;rio" required="true">  
									                    <f:selectItems value="#{controleAluno.UFS}" var="UF" itemLabel="#{UF}" itemValue="#{UF}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>										
											</h:panelGrid>
										</fieldset>
										<fieldset>
											<legend>Ensino M&eacute;dio</legend>
											<h:panelGrid columns="2" columnClasses="alinhaDir">
												<h:column>
												</h:column>
												<h:column>
													<h:outputText value="" styleClass="campoObrigatorio" />
												</h:column>
												<h:column>
													<h:outputLabel value="Institui&ccedil;&atilde;o:" />
												</h:column>
												<h:column>
													<h:inputText id="instituicaoEnsinoMedio" size="60" maxlength="100" class="upper" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoMedio.nomeInstituicaoEnsinoMedio}" requiredMessage="Campo [INSTITUI&Ccedil;&Atilde;O DE ENSINO M&Eacute;DIO] obrigat&oacute;rio" required="true"/>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="Ano de Conclus&atilde;o:" />&nbsp;
													<h:inputText id="anoInstituicaoEnsinoMedio" size="4" maxlength="4" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoMedio.anoInstituicaoEnsinoMedio}" alt="number" requiredMessage="Campo [ANO DA INSTITUI&Ccedil;&Atilde;O DE ENSINO M&Eacute;DIO] obrigat&oacute;rio" required="true"/>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Cidade:" />
												</h:column>
												<h:column>
													<h:inputText id="cidadeInstituicaoEnsinoMedio" size="30" maxlength="30" class="upper" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoMedio.cidadeInstituicaoEnsinoMedio}" requiredMessage="Campo [CIDADE DA INSTITUI&Ccedil;&Atilde;O DE ENSINO M&Eacute;DIO] obrigat&oacute;rio" required="true"/>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="UF:" />&nbsp;
													<h:selectOneMenu value="#{controleAluno.aluno.pessoa.instituicaoEnsinoMedio.UFInstituicaoEnsinoMedio}" requiredMessage="Campo [UF DA INSTITUI&Ccedil;&Atilde;O DE ENSINO M&Eacute;DIO] obrigat&oacute;rio" required="true">  
									                    <f:selectItems value="#{controleAluno.UFS}" var="UF" itemLabel="#{UF}" itemValue="#{UF}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>										
											</h:panelGrid>
										</fieldset>
										<fieldset>
											<legend>Ensino Superior</legend>
											<h:panelGrid columns="2" columnClasses="alinhaDir">
												<h:column>
												</h:column>
												<h:column>
													<h:outputText value="" styleClass="campoObrigatorio" />
												</h:column>
												<h:column>
													<h:outputLabel value="Institui&ccedil;&atilde;o:" />
												</h:column>
												<h:column>
													<h:inputText id="instituicaoEnsinoSuperior" size="60" maxlength="100" class="upper" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoSuperior.nomeInstituicaoEnsinoSuperior}" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="Ano de Conclus&atilde;o:" />&nbsp;
													<h:inputText id="anoInstituicaoEnsinoSuperior" size="4" maxlength="4" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoSuperior.anoInstituicaoEnsinoSuperior}" alt="number" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Cidade:" />
												</h:column>
												<h:column>
													<h:inputText id="cidadeInstituicaoEnsinoSuperior" size="30" maxlength="30" class="upper" value="#{controleAluno.aluno.pessoa.instituicaoEnsinoSuperior.cidadeInstituicaoEnsinoSuperior}" />
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													<h:outputLabel value="UF:" />&nbsp;
													<h:selectOneMenu value="#{controleAluno.aluno.pessoa.instituicaoEnsinoSuperior.UFInstituicaoEnsinoSuperior}">  
									                    <f:selectItems value="#{controleAluno.UFS}" var="UF" itemLabel="#{UF}" itemValue="#{UF}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>										
											</h:panelGrid>
										</fieldset>
									</p:tab>							
									<p:tab title="Dados Acad&ecirc;micos">
										<fieldset>
											<h:panelGrid columns="2" columnClasses="alinhaDir">
												<h:column>
												</h:column>
												<h:column>
													<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
												</h:column>
												<h:column>
													<h:outputLabel value="Processo de Admiss&atilde;o:" styleClass="select" />
												</h:column>
												<h:column>
													<h:selectOneMenu value="#{controleAluno.aluno.processoAdmissao}" id="processoAdmissao" requiredMessage="Campo [PROCESSO ADMISS&Atilde;O] obrigat&oacute;rio" required="true">
														<f:selectItem itemLabel="selecione" itemValue="#{controleAluno.processoAdmissaoSelecione}"/>
									                    <f:selectItems value="#{controleAluno.processosAdmissao}" var="processoAdmissao" itemLabel="#{processoAdmissao.descricao}" itemValue="#{processoAdmissao}" />
									                    <f:converter converterId="converteProcessoAdmissao" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Grade Curricular:" styleClass="select" />
												</h:column>
												<h:column>
													<h:selectOneMenu value="#{controleAluno.aluno.gradeCurricular}" requiredMessage="Campo [GRADE CURRICULAR] obrigat&oacute;rio" required="true">  
														<f:selectItem itemLabel="selecione" itemValue="#{controleAluno.gradeCurricularSelecione}"/>
									                    <f:selectItems value="#{controleAluno.gradesCurricular}" var="grade" itemLabel="#{grade.descricao}" itemValue="#{grade}" />
									                    <f:converter converterId="converteGradeCurricular" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
													<h:outputLabel value="Ano:" />
												</h:column>
												<h:column>
														<h:inputText id="ano" size="4" maxlength="4" alt="number" value="#{controleAluno.aluno.ano}" requiredMessage="Campo [ANO] obrigat&oacute;rio" required="true"/>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Semestre:" />&nbsp;
														<h:inputText id="semestre" size="2" maxlength="2" alt="number" value="#{controleAluno.aluno.semestre}" requiredMessage="Campo [SEMESTRE] obrigat&oacute;rio" required="true"/>
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
														<h:outputLabel value="Classifica&ccedil;&atilde;o:" />&nbsp;
														<h:inputText id="classificacao" size="5" maxlength="5" alt="number" value="#{controleAluno.aluno.classificacao}" />
														<h:outputLabel value="Pontos:" />&nbsp;
														<h:inputText id="pontos" size="5" maxlength="5" alt="number" value="#{controleAluno.aluno.pontos}" />
														<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>
												<h:column>
														<h:outputLabel value="Data Conclus&atilde;o:" />
												</h:column>
												<h:column>
													<p:calendar value="#{controleAluno.aluno.dataConclusao}" mode="popup" pattern="dd/MM/yyyy" />&nbsp;
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												</h:column>	
											
											</h:panelGrid>
										</fieldset>						
									</p:tab>
									<p:tab title="Matr&iacute;cula">
										<h:panelGrid columns="2" columnClasses="alinhaDir">
											<h:column>
											</h:column>
											<h:column>
												<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
											</h:column>
											<h:column>
												<h:outputLabel value="Curso:" styleClass="select" />
											</h:column>
											<h:column>
												<h:selectOneMenu value="#{controleAluno.aluno.curso}" id="curso" requiredMessage="Campo [CURSO] obrigat&oacute;rio" required="true">
													<f:selectItem itemLabel="selecione" itemValue="#{controleAluno.cursoSelecione}"/>
								                    <f:selectItems value="#{controleAluno.cursos}" var="curso" itemLabel="#{curso.descricao}" itemValue="#{curso}" />
								                    <f:converter converterId="converteCurso" />
												</h:selectOneMenu>
												<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												<h:outputLabel value="Per&iacute;odo:" />&nbsp;
												<h:inputText id="periodo" size="2" maxlength="2" alt="number" value="#{controleAluno.aluno.periodo}" requiredMessage="Campo [PER&Iacute;ODO] obrigat&oacute;rio" required="true"/>
												<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
												<h:outputLabel value="Turma:" />&nbsp;
												<h:inputText id="turma" size="2" maxlength="2" class="upper" value="#{controleAluno.aluno.turma}" requiredMessage="Campo [TURMA] obrigat&oacute;rio" required="true"/>
												<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
											</h:column>
											<h:column>
												<h:outputLabel value="Status" styleClass="select" />
											</h:column>
											<h:column>
													<h:selectOneMenu disabled="true" value="#{controleAluno.aluno.statusAluno}" requiredMessage="Campo [STATUS DO ALUNO] obrigat&oacute;rio" required="true">  
									                    <f:selectItems value="#{controleAluno.statusAlunos}" var="statusAluno" itemLabel="#{statusAluno.descricao}" itemValue="#{statusAluno}" />
									                    <f:converter converterId="converteStatusAluno" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
											</h:column>
											<h:column>
												<h:outputLabel value="Turno:" styleClass="select" />
											</h:column>
											<h:column>
													<h:selectOneMenu value="#{controleAluno.aluno.turno}" requiredMessage="Campo [TURNO] obrigat&oacute;rio" required="true">  
									                    <f:selectItems value="#{controleAluno.turnos}" var="turno" itemLabel="#{turno}" itemValue="#{turno}" />
													</h:selectOneMenu>
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
													
													<h:outputLabel value="Data de Matr&iacute;cula:" />&nbsp;
													<p:calendar value="#{controleAluno.aluno.dataMatricula}" mode="popup" pattern="dd/MM/yyyy" requiredMessage="Campo [DATA DE MATR&Iacute;CULA] obrigat&oacute;rio" required="true"/>&nbsp;
													<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;										
											</h:column>	
											<h:column>
													<h:outputLabel value="Observa&ccedil;&atilde;o:" />
											</h:column>
											<h:column>
												<h:inputTextarea id="observacaco" value="#{controleAluno.aluno.observacao}" rows="5" cols="70" />
												<h:outputText value="(*)" styleClass="campoObrigatorio" />&nbsp;
											</h:column>	
										</h:panelGrid>
										<br></br>&nbsp;
										<strong><h:outputLabel value="Disciplinas Matriculadas" rendered="#{not empty controleAluno.aluno.historico}" /> </strong>
										<h:panelGrid columns="2" columnClasses="alinhaDir">
											<h:column>
											</h:column>
											<h:column>
												<p:dataTable value="#{controleAluno.aluno.turmaOfertaDisciplinas}" 
												             id="id_ListaTurmaOfertaDisciplina"
												             var="turmaDisciplina" 
												             dynamic="true" 
												             rendered="#{not empty controleAluno.aluno.historico}" 
												             emptyMessage="Nenhum resgistro encontrado"
												             errorMessage="Ocorreu um erro"
												             selectionMode="single" >
													<p:column styleClass="width60"  >
														<f:facet name="header">
															<h:outputText value="Cod.Turma" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.turmaOferta.turma.codigoTurma}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Per&iacute;odo" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.turmaOferta.turma.periodo}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Turma" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.turmaOferta.turma.tipoTurma}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Id.Disciplina" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.disciplina.identificador}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Disciplina" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.disciplina.descricao}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Hora Aula" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.disciplina.creditos}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Carga Hor&aacute;ria" />
														</f:facet>
														<h:outputText value="#{turmaDisciplina.disciplina.cargaHoraria}" />
													</p:column>
												</p:dataTable>
											</h:column>
										</h:panelGrid>
									</p:tab>
									<p:tab title="Hist&oacute;rico">
										<h:panelGrid columns="2" columnClasses="alinhaDir">
											<h:column>
											</h:column>
											<h:column>
												<p:dataTable value="#{controleAluno.aluno.historico}" 
												             id="id_ListaHistorico"
												             var="historico" 
												             paginator="true" 
												             rows="15" 
												             dynamic="true" 
												             rendered="#{not empty controleAluno.aluno.historico}" 
															 firstPageLinkLabel="Primeiro"
												             previousPageLinkLabel="Anterior"
												             nextPageLinkLabel ="Pr&oacute;ximo"
												             lastPageLinkLabel="&Uacute;ltima"
												             emptyMessage="Nenhum resgistro encontrado"
												             errorMessage="Ocorreu um erro"
												             selectionMode="single" >
													<p:column styleClass="width60"  >
														<f:facet name="header">
															<h:outputText value="Per&iacute;odo" />
														</f:facet>
														<h:outputText value="#{historico.periodo}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Disciplina" />
														</f:facet>
														<h:outputText value="#{historico.disciplina.descricao}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Ano" />
														</f:facet>
														<h:outputText value="#{historico.ano}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Semestre" />
														</f:facet>
														<h:outputText value="#{historico.semestre}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Cr&eacute;dito" />
														</f:facet>
														<h:outputText value="#{historico.disciplina.creditos}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Carga Hor&aacute;ria" />
														</f:facet>
														<h:outputText value="#{historico.disciplina.cargaHoraria}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Faltas" />
														</f:facet>
														<h:outputText value="#{historico.totalFaltas}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="M&eacute;dia" />
														</f:facet>
														<h:outputText value="#{historico.media}" />
													</p:column>
													<p:column>
														<f:facet name="header">
															<h:outputText value="Status" />
														</f:facet>
														<h:outputText value="#{historico.statusHistorico}" />
													</p:column>
												</p:dataTable>
											</h:column>
										</h:panelGrid>
									</p:tab>
								</p:tabView>
								<h:outputLink value="manutencao.jsf">
									<h:graphicImage url="/images/botoes/btnPesquisar.png" class="btnAcoes" />
								</h:outputLink>
								<h:commandLink action="#{controleAluno.gravar}" styleClass="alinhaDir">
									<h:graphicImage url="/images/botoes/btnGravar.png" class="btnAcoes"/>
								</h:commandLink>								
							</h:form>
						</h:panelGrid>
					</p:tab>
				</p:tabView>
			</fieldset>
		</ui:define>
		
	
		
	</ui:composition>



</html>